package com.my.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 库存盘点
 * </p>
 *
 * @author 张子艺
 * @since 2018-08-26
 */
@TableName("inventory")
public class Inventory extends Model<Inventory> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 盘点人
     */
	private String inventory;
	private double number;
    /**
     * 日期
     */
	private Long date;
    /**
     * 种类
     */
	private String type;
    /**
     * 物品名称
     */
	@TableField("item_name")
	private String itemName;

	/**
	 * 规格
	 */
	private String Specifications;

	public String getSpecifications() {
		return Specifications;
	}

	public void setSpecifications(String specifications) {
		Specifications = specifications;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getInventory() {
		return inventory;
	}

	public void setInventory(String inventory) {
		this.inventory = inventory;
	}

	public double getNumber() {
		return number;
	}

	public void setNumber(double number) {
		this.number = number;
	}

	public Long getDate() {
		return date;
	}

	public void setDate(Long date) {
		this.date = date;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public long getAreaid() {
		return areaid;
	}

	public void setAreaid(long areaid) {
		this.areaid = areaid;
	}

	@TableField("areaid")
	private long areaid;


	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Inventory{" +
				"id=" + id +
				", inventory='" + inventory + '\'' +
				", number=" + number +
				", date=" + date +
				", type='" + type + '\'' +
				", itemName='" + itemName + '\'' +
				", Specifications='" + Specifications + '\'' +
				'}';
	}
}
